package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 类型数据设置，如设置年级或是否排除补课班
 * </p>
 *
 * @author hpiggy
 * @since 2024-01-17
 */
@TableName("student_for_data_set")
@ApiModel(value = "StudentForDataSet对象", description = "类型数据设置，如设置年级或是否排除补课班")
@Data
public class StudentForDataSet implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer yearClassId;

    private Integer status;

    private Integer isExcludeRepair;

    @ApiModelProperty("类型id")
    private Long dataTypeId;

    @ApiModelProperty("1：按年级，2：补课班")
    private Integer type;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ExcelIgnore
    @TableField(exist = false)
    private String yearClassStr;
}
